package com.mayuran19.portal.sales.service.impl;

import java.util.List;

import com.mayuran19.portal.common.ui.pagination.PagedResultSet;
import com.mayuran19.portal.common.ui.pagination.Pager;
import com.mayuran19.portal.sales.dao.SaleDetailDAO;
import com.mayuran19.portal.sales.database.domain.SaleDetail;
import com.mayuran19.portal.sales.service.SaleDetailService;

public class SaleDetailServiceImpl implements SaleDetailService {
	private SaleDetailDAO saleDetailDAO;

	public void setSaleDetailDAO(SaleDetailDAO saleDetailDAO) {
		this.saleDetailDAO = saleDetailDAO;
	}

	public SaleDetail save(SaleDetail t) {
		return this.saleDetailDAO.save(t);
	}

	public SaleDetail update(SaleDetail t) {
		return this.saleDetailDAO.update(t);
	}

	public SaleDetail findById(Long id) {
		return this.saleDetailDAO.findById(id);
	}

	public SaleDetail findById(Long id, String... include) {
		return this.saleDetailDAO.findById(id, include);
	}

	public SaleDetail delete(SaleDetail t) {
		return this.saleDetailDAO.delete(t);
	}

	public List<SaleDetail> findAll() {
		return this.saleDetailDAO.findAll();
	}

	public List<SaleDetail> findAll(Pager pager) {
		return this.saleDetailDAO.findAll(pager);
	}

	public PagedResultSet paginate(Pager pager) {
		return this.saleDetailDAO.paginate(pager);
	}

	public Integer getAllCount() {
		return this.saleDetailDAO.getAllCount();
	}

	public Boolean isUnique(Long id, String fieldName, String fieldValue) {
		return this.saleDetailDAO.isUnique(id, fieldName, fieldValue);
	}

}
